package com.yanfan.energy.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author caijinkang
 * @date 2023年01月30日 15:00
 */
public class SubsectionBody {
    /**
     * 分段号
     *
     * @author caijinkang
     * @date 2023/1/30 15:01
     * @param null
     * @return null
     */
    private String subsectionNumber;
    /**
     * 工艺/工序
     *
     * @author caijinkang
     * @date 2023/1/30 15:01
     * @param null
     * @return null
     */
    private String craft;
    /**
     * 厂区
     *
     * @author caijinkang
     * @date 2023/1/30 15:05
     * @param null
     * @return null
     */
    private String factory;
    /**
     * 物料名称
     *
     * @author caijinkang
     * @date 2023/1/30 15:06
     * @param null
     * @return null
     */
    private String materialName;
    /**
     * 规格
     *
     * @author caijinkang
     * @date 2023/1/30 15:06
     * @param null
     * @return null
     */
    private String specification;
    /**
     * 完成时间
     *
     * @author caijinkang
     * @date 2023/1/30 15:07
     * @param null
     * @return null
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date doneDate;
    /**
     * 状态
     *
     * @author caijinkang
     * @date 2023/1/30 15:07
     * @param null
     * @return null
     */
    private Integer state;

    public SubsectionBody() {
    }

    public SubsectionBody(String subsectionNumber, String craft, String factory, String materialName, String specification, Date doneDate, Integer state) {
        this.subsectionNumber = subsectionNumber;
        this.craft = craft;
        this.factory = factory;
        this.materialName = materialName;
        this.specification = specification;
        this.doneDate = doneDate;
        this.state = state;
    }

    @Override
    public String toString() {
        return "SubsectionBody{" + "subsectionNumber='" + subsectionNumber + '\'' + ", craft='" + craft + '\'' + ", factory='" + factory + '\'' + ", materialName='" + materialName + '\'' + ", specification='" + specification + '\'' + ", doneDate=" + doneDate + ", state=" + state + '}';
    }

    public String getSubsectionNumber() {
        return subsectionNumber;
    }

    public void setSubsectionNumber(String subsectionNumber) {
        this.subsectionNumber = subsectionNumber;
    }

    public String getCraft() {
        return craft;
    }

    public void setCraft(String craft) {
        this.craft = craft;
    }

    public String getFactory() {
        return factory;
    }

    public void setFactory(String factory) {
        this.factory = factory;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public Date getDoneDate() {
        return doneDate;
    }

    public void setDoneDate(Date doneDate) {
        this.doneDate = doneDate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
